iris.screen(
    function (self) {	
        self.create=function() {
            self.tmpl("/ui/avatar_seleccion.html");
            
            //Cambiar el tamaño de los botones
            var accordion=$(".accordion");
            var botones=$(".btn-group>button");
            if(accordion.width()<347) botones.toggleClass("btn-large");
            var before_resized=$(".accordion").width()<347 ? true:false;
            var after_resized=null;
            $(window).resize(function(){
            	after_resized=accordion.width()<347 ? true:false;
			    if(before_resized!==after_resized) botones.toggleClass("btn-large");
				before_resized=accordion.width()<347 ? true:false;
			});
            
        };
        self.awake=function(){

        }
}, iris.path.ui.avatar_seleccion.js);